import { sendRequest } from '@/http';

export function queryStaffs(params: any) {
  return sendRequest({
    url: `/staff/queryStaffs`,
    method: 'get',
    params,
  });
}

export function deleteStaff(staffId: string) {
  return sendRequest({
    url: `/staff/deleteStaff`,
    method: 'post',
    data: { staffId },
  });
}

export function editStaff(data: any) {
  return sendRequest({
    url: `/staff/updateStaff`,
    method: 'post',
    data,
  });
}

export function createStaff(data: any) {
  return sendRequest({
    url: `/staff/createStaff`,
    method: 'post',
    data,
  });
}

export function disableStaff(data: any) {
  return sendRequest({
    url: `/staff/disableStaff`,
    method: 'post',
    data,
  });
}

export function changePassword(data: any) {
  return sendRequest({
    url: `/staff/changePassword`,
    method: 'post',
    data,
  });
}
